<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:rich="http://richfaces.org/rich">

<ui:composition template="../templates/main.xhtml">
	<ui:define name="title">Delete user</ui:define>
	<ui:define name="content">
		<h:form>
			<h:panelGrid columns="2" border="0">
				<f:facet name="header">
				<h:outputText value="Видалити користувача" />
				</f:facet>
				<h:outputText value="Логін:" />
				<h:outputText value="#{userBean.selectedUser.name}" id="deleteUserLogin"/>
				<h:outputText value="Роль:" />
				<h:outputText value="#{userBean.selectedUser.type}" id="deleteUserRole" />
				<h:outputText value="Активний:" />
				<h:outputText id="active" value="#{userBean.selectedActive}"/>
			</h:panelGrid>
			<br/>
			<h:commandButton value="Видалити користувача"
				action="#{userBean.doDeleteUser}" />
			<h:commandButton value="Відміна" action="#{userBean.cancelAdding}" />
			<br/>
			<rich:messages globalOnly="true"/>
		</h:form>
	</ui:define>
</ui:composition>

</html>